<?php 
$this->widget('application.widget.ad.AdWidget', array(
	'thumb' => '788x400',
	'id' 	=> 'main_ad',
	'code' 	=> 'index_top',
	'tpl' 	=> 'fader'
));

$this->widget('application.widget.ad.AdWidget', array(
	'id' 	=> 'main_ad_1',
	'code' 	=> 'index_main_1',
	'thumb' => null,
));

$this->widget('application.widget.goods.GoodsListWidget', array(
	'id' 	=> 'recommend_goods',
	'thumb' => '175x175',
	'count' => 5,
	'tpl' 	=> 'list_1',
	'title' => '推荐商品',
	'flag' 	=> 1 //推荐
));

//推荐分类
$recommand_cates = GoodsCateModel::model()->find(array('site_id'=>SITE_ID, 'goods_cate_flags'=>0, 'parent'=>''), 'name', 0, 10, array('rank'=>1));
$i = 0;
foreach ($recommand_cates as $cate_id => $cate){
	++$i;
	$this->widget('application.widget.goods.GoodsListWidget', array(
		'id' 	=> 'recommend_goods',
		'thumb' => '175x175',
		'count' => 4,
		'cate' 	=> $cate_id,
		'tpl' 	=> 'list_index',
		'title' => CHtml::tag('span', array(), $i . 'F ') . $cate['name'],
		'flag' 	=> 2 //特价
	));
}
?>
<div id="site_left">
	
	
</div>

<?php

?>
